import { BaseService, Service, Permission } from '@/cool';

@Service('comm')
export default class extends BaseService {
	@Permission('batchFiled')
	async batchFiled(params) {
		return this.request({
			url: '/batchFiled',
			method: 'POST',
			data: {
				...params
			}
		});
	}
	@Permission('upload')
	async upload(params) {
		return this.request({
			url: '/upload',
			method: 'POST',
			data: {
				...params
			}
		});
	}
}
